package com.vehicle.app.config;

import com.vehicle.core.rest.BaseGlobalExceptionsAdviceHandler;
import org.springframework.web.bind.annotation.ControllerAdvice;

import javax.servlet.http.HttpServletRequest;

/**
 * @author shouhan
 * @version 1.0
 * @date 2018/12/28
 * @desc 全局异常拦截
 * @see
 * @since 1.0
 */
@ControllerAdvice
public class GlobalExceptionsHandler extends BaseGlobalExceptionsAdviceHandler {

    /**
     * 添加异常日志
     *
     * @param request
     * @param e
     */
    @Override
    protected void addServerExceptionLog(HttpServletRequest request, Exception e) {
        //todo 王寿汉 异常日志入库
    }
}
